<!DOCTYPE html>
<html lang="zh">

<head>
  <title>seeders-admin后台管理模板2.0</title>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
  <link rel="stylesheet" href="static/css/bootstrap.min.css" />
  <link rel="stylesheet" href="static/css/font-awesome.min.css" />
  <link rel="stylesheet" href="static/css/sdxmenu.css" />
  <link rel="stylesheet" href="static/css/seeder-admin.css" />
  <link rel="stylesheet" href="lib/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
  <script src="static/js/jquery-3.4.1.min.js"></script>
  <script src="static/js/popper.min.js"></script>
  <script src="static/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="static/js/sdxmenu.js"></script>
  <script type="text/javascript" src="static/js/seeders-admin.js"></script>
  <script src="lib/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
  <script src="lib/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
</head>

<body>
  <nav class="navbar navbar-expand-lg navbar-light fixed-top" style="background-color: #ffffff;">
    <a class="navbar-brand sdx-trigger">seeder-admin2.0</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarbody"
      aria-controls="navbarbody" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarbody">
      <ul class="navbar-nav mr-auto">
        <li class="nav-item active">
          <a class="nav-link" href="index.html">首页</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="javascript:void(0)">平台</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="javascript:void(0)">商城</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="javascript:void(0)">资金</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="javascript:void(0)">招商</a>
        </li>
      </ul>

      <ul class="navbar-nav">
        <li class="nav-item active dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
            aria-haspopup="true" aria-expanded="false">
            <img class="sd-img-avatar" src="static/imgs/avatar.png" alt="管理员" />
            admin888
          </a>
          <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
            <a class="dropdown-item" href="#">个人信息</a>
            <a class="dropdown-item" href="#">修改密码</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="page_login.html">退出登录</a>
          </div>
        </li>
      </ul>
    </div>
  </nav>

  <aside class="sdxmenu-wrapper" data-sdxmenu>
    <div class="sdxmenu-scroll-box">
      <ul class="sdxmenu">
        <li>
          <a href="javascript:void(0)" class="fa fa-search">
            <input placeholder="请输入搜索内容" class="sdxmenu-search" /></a>
        </li>

        <li><a href="javascript:void(0)" class="fa fa-home">关于</a></li>

        <li class="sdxmenu-item-has-submenu">
          <a href="javascript:void(0)" class="fa fa-wrench">工具类</a>
          <ul class="sdxmenu-submenu">
            <li>
              <a href="javascript:void(0)" class="fa fa-code-fork">浮动</a>
            </li>
          </ul>
        </li>
        <li class="sdxmenu-item-has-submenu">
          <a href="javascript:void(0)" class="fa fa-check-square-o">表单</a>
          <ul class="sdxmenu-submenu">
            <li>
              <a href="forms_demo.html" class="fa fa-code-fork">演示</a>
            </li>
            <li>
              <a href="forms_control.html" class="fa fa-code-fork">控件</a>
            </li>
            <li>
              <a href="forms_validate.html" class="fa fa-code-fork">验证</a>
            </li>
          </ul>
        </li>

        <li class="sdxmenu-item-has-submenu">
          <a href="javascript:void(0)" class="fa fa-building">组件</a>
          <ul class="sdxmenu-submenu">
            <li>
              <a href="component_button.html" class="fa fa-code-fork">按钮</a>
            </li>
            <li>
              <a href="component_badge.html" class="fa fa-code-fork">徽章</a>
            </li>
            <li>
              <a href="component_alert.html" class="fa fa-code-fork">警告框</a>
            </li>
            <li>
              <a href="component_table.html" class="fa fa-code-fork">表格</a>
            </li>
            <li>
              <a href="component_datepicker.html" class="fa fa-code-fork">日期选择器</a>
            </li>
            <li>
              <a href="component_richtext.html" class="fa fa-code-fork">富文本</a>
            </li>
          </ul>
        </li>

        <li class="sdxmenu-item-has-submenu">
          <a href="javascript:void(0)" class="fa fa-paper-plane-o">页面</a>
          <ul class="sdxmenu-submenu">
            <li>
              <a href="page_login.html" class="fa fa-code-fork">登录页面</a>
            </li>
            <li>
              <a href="page_curd.html" class="fa fa-code-fork">curd页面</a>
            </li>
          </ul>
        </li>

        <li class="sdxmenu-item-has-submenu">
          <a href="javascript:void(0)" class="fa fa-tachometer">仪表盘</a>
          <ul class="sdxmenu-submenu">
            <li>
              <a href="dashboard_chart.js.html" class="fa fa-code-fork">chart.js</a>
            </li>
            <li>
              <a href="javascript:void(0)" class="fa fa-code-fork">echartsjs.js(百度产品)</a>
            </li>
          </ul>
        </li>

        <li><a href="javascript:void(0)" class="fa fa-home">图标</a></li>
      </ul>
    </div>
  </aside>

  <main class="container">
    <div class="row mt-2">
      <div class="col-md-12">
        <h2>日期选择器插件</h2>
        <p>超强的bootstrap的时间插件,强大到让人窒息,操作方便美观大气</p>
        <p>场景如下列举几种</p>
        <p>文章的发布时间、根据时间查询用户、房屋建筑年代、</p>
        <p>设置会员权限到期时间、等</p>
        <p>
          bootstrap-datetimepicker文档
          <a href="https://www.malot.fr/bootstrap-datetimepicker/">文档地址</a>
        </p>
        <p>
          简单说明:这款插件本身专业针对bootstrap2、3版本的,针对bootstrap4我做了一点点的修改
        </p>
      </div>
    </div>
    <div class="source-code show">
      <div class="row">
        <div class="col-md-4">
          <h2>单选年</h2>
          <div class="input-group">
            <input type="text" class="form-control form_datetime" readonly />
            <div class="input-group-append">
              <button class="btn btn-xs" type="button">
                <i class="fa fa-calendar" aria-hidden="true"></i>
              </button>
            </div>
          </div>
          <script type="text/javascript">
            $(".form_datetime").datetimepicker({
              //语言配置
              language: "zh-CN",
              //时间格式化
              format: "yyyy",
              fontAwesome: "font-awesome",
              //选择完自动关闭
              autoclose: true,
              //出现今天按钮
              todayBtn: true,
              //今天高亮
              todayHighlight: true,
              startView: "decade",
              minView: "decade",
            });
          </script>
        </div>
      </div>
    </div>
    <div class="source-code show">
      <div class="row">
        <div class="col-md-4">
          <h2>单选年月</h2>
          <div class="input-group">
            <input type="text" class="form-control form_datetime" readonly />
            <div class="input-group-append">
              <button class="btn btn-xs" type="button">
                <i class="fa fa-calendar" aria-hidden="true"></i>
              </button>
            </div>
          </div>
          <script type="text/javascript">
            $(".form_datetime").datetimepicker({
              //语言配置
              language: "zh-CN",
              //时间格式化
              format: "yyyy-mm",
              fontAwesome: "font-awesome",
              //选择完自动关闭
              autoclose: true,
              //出现今天按钮
              todayBtn: true,
              //今天高亮
              todayHighlight: true,
              startView: "decade",
              minView: "year",
            });
          </script>
        </div>
      </div>
    </div>

    <div class="source-code show">
      <div class="row">
        <div class="col-md-4">
          <h2>单选年月日</h2>
          <div class="input-group">
            <input type="text" class="form-control form_datetime" readonly />
            <div class="input-group-append">
              <button class="btn btn-xs" type="button">
                <i class="fa fa-calendar" aria-hidden="true"></i>
              </button>
            </div>
          </div>
          <script type="text/javascript">
            $(".form_datetime").datetimepicker({
              //语言配置
              language: "zh-CN",
              //时间格式化
              format: "yyyy-mm-dd",
              fontAwesome: "font-awesome",
              //选择完自动关闭
              autoclose: true,
              //出现今天按钮
              todayBtn: true,
              //今天高亮
              todayHighlight: true,
              startView: 2,
              minView: 2,

            });
          </script>
        </div>
      </div>
    </div>

    <div class="source-code show">
      <div class="row">
        <div class="col-md-4">
          <h2>单选年月日时分</h2>
          <div class="input-group">
            <input type="text" class="form-control form_datetime" readonly />
            <div class="input-group-append">
              <button class="btn btn-xs" type="button">
                <i class="fa fa-calendar" aria-hidden="true"></i>
              </button>
            </div>
          </div>
          <script type="text/javascript">
            $(".form_datetime").datetimepicker({
              //语言配置
              language: "zh-CN",
              //时间格式化
              format: "yyyy-mm-dd hh:ii",
              // 同时你也可以格式化成 2020-04-17 11:30:45 
              //但是该插件没有秒视图，所以最佳是选择到分,让后端自己设置秒为yyyy-mm-dd hh:ii:00 
              // format: "yyyy-mm-dd hh:ii",
              fontAwesome: "font-awesome",
              //选择完自动关闭
              autoclose: true,
              //出现今天按钮
              todayBtn: true,
              //今天高亮
              todayHighlight: true,
              startView: 2,
              minView: 0,
            });
          </script>
        </div>
      </div>
    </div>


    <div class="source-code show">
      <div class="row">
        <div class="col-md-4">
          <h2>单选时分(时刻）</h2>
          <div class="input-group">
            <input type="text" class="form-control form_datetime" readonly />
            <div class="input-group-append">
              <button class="btn btn-xs" type="button">
                <i class="fa fa-calendar" aria-hidden="true"></i>
              </button>
            </div>
          </div>
          <script type="text/javascript">
            $(".form_datetime").datetimepicker({
              //语言配置
              language: "zh-CN",
              //时间格式化
              format: "hh:ii",
              fontAwesome: "font-awesome",
              //选择完自动关闭
              autoclose: true,
              //出现今天按钮
              todayBtn: true,
              //今天高亮
              todayHighlight: true,
              startView: 1,
              minView: 0,
            });
          </script>
        </div>
      </div>
    </div>


    <div class="source-code show">
      <div class="row">
        <div class="col-md-6">
          <h2>双选年月日时分</h2>
          <p>注意：开始时间不能大于结束时间|结束时间不能小于开始时间</p>
          <p>其它如年到年什么的选择是同理的我就不全部罗列了，写文档太累了</p>
  
          <div class="d-flex">
            <div class="input-group">
              <input type="text" class="form-control startime" readonly />
              <div class="input-group-append">
                <button class="btn btn-xs" type="button">
                  <i class="fa fa-calendar" aria-hidden="true"></i>
                </button>
              </div>
            </div>
            <div class="input-group">
              <input type="text" class="form-control endtime" readonly />
              <div class="input-group-append">
                <button class="btn btn-xs" type="button">
                  <i class="fa fa-calendar" aria-hidden="true"></i>
                </button>
              </div>
            </div>
          </div>

          


          <script type="text/javascript">
            var startime = $(".startime").datetimepicker({
              //语言配置
              language: "zh-CN",
              //时间格式化
              format: "yyyy-mm-dd hh:ii",
              // 同时你也可以格式化成 2020-04-17 11:30:45 
              //但是该插件没有秒视图，所以最佳是选择到分,让后端自己设置秒为yyyy-mm-dd hh:ii:00 
              // format: "yyyy-mm-dd hh:ii",
              fontAwesome: "font-awesome",
              //选择完自动关闭
              autoclose: true,
              //出现今天按钮
              todayBtn: true,
              //今天高亮
              todayHighlight: true,
              startView: 2,
              minView: 0,
            });
            var endtime = $(".endtime").datetimepicker({
              //语言配置
              language: "zh-CN",
              //时间格式化
              format: "yyyy-mm-dd hh:ii",
              // 同时你也可以格式化成 2020-04-17 11:30:45 
              //但是该插件没有秒视图，所以最佳是选择到分,让后端自己设置秒为yyyy-mm-dd hh:ii:00 
              // format: "yyyy-mm-dd hh:ii",
              fontAwesome: "font-awesome",
              //选择完自动关闭
              autoclose: true,
              //出现今天按钮
              todayBtn: true,
              //今天高亮
              todayHighlight: true,
              startView: 2,
              minView: 0,
            
            });
            //监听事件
            startime.on('changeDate', function (ev) {endtime.datetimepicker('setStartDate',ev.date);});
            endtime.on('changeDate', function (ev) {startime.datetimepicker('setEndDate',ev.date);});
          </script>
        </div>
      </div>
    </div>




  </main>



</body>

</html>